package com.yanyu.space.sys.controller;

import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author yanyu
 */
@RestController
@Slf4j
public class TestController {

    @RequestMapping("/test")
    public String test(@RequestBody Map<String,Object> map) {
        log.info("============================================时间:{}", JSONObject.toJSONString(map));
        return "SUCCESS";
    }
}
